//---------------------------------------------------------------------------
#ifndef RLCnsCDetH
#define RLCnsCDetH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "PHRBand.h"
#include "PHReport.h"
#include <ExtCtrls.hpp>
#include "PHRLabel.h"
#include "PHDS.h"

//---------------------------------------------------------------------------
class TRLCnsCDet1 : public TForm
{
__published:  // IDE-managed Components
  PHReport*  PHReport1;
  PHRBand*  PHRBand1;
  PHRLabel*  LBEmpresa;
  PHRLabel*  PHRLabel13;
  PHRLabel*  LBPeriodo;
  PHRLabel*  PHRLabel14;
  PHRLabel*  PHRLabel15;
        PHDataSource *DSPesosTotais;
        PHRBand *PHRBand3;
        PHRLabel *PHRLabel8;
        PHRLabel *PHRLabel9;
        PHRLabel *PHRLabel10;
        PHRLabel *PHRLabel11;
        PHRBand *PHRBand2;
        PHRLabel *LBDescricao;
        PHRLabel *LBCustosT;
        PHRLabel *LBFaturado;
        PHRLabel *LBDiferenca;
        PHRLabel *PHRLabel1;
        PHRBand *PHRBand4;
        PHRLabel *PHRLabel2;
        PHRLabel *PHRLabel3;
        PHRLabel *PHRLabel4;
        PHRLabel *PHRLabel5;
        PHRBand *PHRBand5;
        PHRLabel *LBDetalhe;
        PHRLabel *LBPeso;
        PHRLabel *LBTotal;
        PHRLabel *LBMes;
        PHRLabel *LBContagem;
        PHRLabel *PHRLabel6;
        PHRLabel *LBTotalReais;
        PHRLabel *PHRLabel12;
        PHRLabel *LBCustosF;
        PHRLabel *PHRLabel16;
        PHRLabel *LBCustosV;
        PHRLabel *PHRLabel7;
        PHRLabel *LBPesoMes;
        PHRLabel *LBContagemMes;
        PHRLabel *LBTotalPesosMes;
        PHRLabel *LBTotalReaisMes;
        PHDataSource *DSSoma;
        void __fastcall PHReport1BeforePrint(TObject *Sender,
          bool &PrintReport);
        void __fastcall PHReport1NeedData(PHReport *Sender,
          bool &MoreData);
        void __fastcall PHReport1AfterPrint(PHReport *Sender);
private: // User declarations
  int MesAtual;
  bool Extrato;
  int PesosDoMes[13];
public: // User declarations
  int MesInicial, MesFinal;
  double CustoFixoIndividual[13];
  double ValorDoPeso[13];
  __fastcall TRLCnsCDet1( TComponent* Owner );

};

//---------------------------------------------------------------------------
extern PACKAGE TRLCnsCDet1*  RLCnsCDet1;

//---------------------------------------------------------------------------
#endif

